<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="zh-CN" lang="zh-CN">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <meta name="Robots" content="all"/>
    <meta name="description" content="免费发布广告，免费发布HTML" />
    <meta name="keywords" content="免费发布广告,免费发布HTML" />
    <title>免费发布广告 HTML</title>
    <%= javascript_include_tag 'prototype' %>
    <%= stylesheet_link_tag 'scaffold' %>
    <style type="text/css">
      tr.mouse_over {
        background-color:#F2F8EF;
      }
      table.grid tbody td  {
        border-top:1px dashed #DDDDDD;
        padding:5px 3px;

      }
      .grid{ margin:0 auto;width:900px;}
      *{        text-align:left;}
      body {
        color:black;
        font-family:Arial,sans-serif,Helvetica,Tahoma;
        font-size:12px;
        line-height:1.5;
        text-align:center;
      }
      td {
        font-size:1em;
        text-align:left;
      }
    </style>

  </head>
  <%= javascript_include_tag :fckeditor %>
  <body>
    <br /><br />
    <div class="content">
      <h1 class = "grid">添加您的广告</h1>

      <% form_for(@web , :html=>{:class => "grid"}) do |f| %>
        <%= f.error_messages %>

        <table class="table">
          <tr class="odd">
            <td width="60px">标题:</td>
            <td width="200px">    <%= f.text_field :title%></td>
          </tr>
          <tr class="odd">
            <td width="60px">URL名称(name):</td>
            <td width="200px">    <%= f.text_field :name%>只能是数字或英文或两者组合</td>
          </tr>
          <tr class="odd">
            <td width="60px">分类:</td>
            <td width="200px">    <%= f.text_field :sort_name%></td>
          </tr>
          <tr class="odd">
            <td width="60px">排序:</td>
            <td width="200px">    <%= f.text_field :sort%></td>
          </tr>
          <tr>
            <td width="60px">内容:</td>
            <td width="200px">
              本站存有上传者的IP，MAC地址，服务器名称信息，对于非法危害群众的贴子将给于删除！<br/>
              支持纯HTML代码
  <%#= fckeditor_textarea("web", "body", :toolbarSet => 'Guest', :height => '600px',:width => '600px') %>
              <%= f.text_area :body  ,:size => "80x20"%>
            </td>
          </tr>
          <tr>
            <td width="60px"></td>
            <td width="200px" style=" text-align:right;">   <%= f.submit '提交'  ,:style=>"background:none repeat scroll 0 0 #006699;
  border:1px solid #D2F3FD;
  color:white;
  cursor:pointer;
  font-size:1em;
  height:23px;
  padding:2px 5px;
  vertical-align:middle;"  %><%= link_to '返回', webs_path %> </td>
          </tr>
        </table>
      <% end %>


    </div>
    <br /><br />
  </body>
</html>
